﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GTCAS.DataAccess;
using GTCAS.CommonLib.Entities;

namespace GTCAS.Business
{
    public class UserBO
    {
        private readonly UserDAO DAO ;
        
        public UserBO(long id_tinhthanh)
        {
            DAO = new UserDAO(id_tinhthanh);

        }
        /// <summary>
        /// Lay thong tin nguoi dung tuong ung voi user va pass truyen vao
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        public GT_USER_NAME GetByUsernameAndPass(string username, string password)
        {
            return DAO.GetByUserPass(username, password);
        }
    }
}
